/*import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;

public class ShortAnswerTest {

	ArrayList<String> wrongVoca = new ArrayList<String>();
	int score;
	Rank rank = new Rank();
	Vocabulary voca = new Vocabulary();
	User user = new User();

	public void shortanswer(int day, int level) {

		Scanner scanner = new Scanner(System.in);
		System.out.println("<Start daily test> (multichoice)");
		try {

			String answer = "";
			String line = "";
			BufferedReader br = null;

			if (level == 3)
				br = new BufferedReader(new FileReader("high.txt"));
			if (level == 2)
				br = new BufferedReader(new FileReader("mid.txt"));
			if (level == 1)
				br = new BufferedReader(new FileReader("low.txt"));

			while ((line = br.readLine()) != null) {

				String test[] = new String[4];
				test = line.split("/");
				if (test[0].equals(Integer.toString(day))) {

					System.out.println("Qestion " + " : " + test[2]);
					System.out.print("Answer : ");
					answer = scanner.next();
					if (test[1].equals(answer)) {
						score++;
					}

					else
						voca.enroll(user.getName(), level, test[1], test[2]);

				}

			}

			System.out.println("your score is " + score);
			rank.enroll(user.getName(), level, day, score);
			br.close();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

	public void shortanswer(int start, int finish, int level) {

		Scanner scanner = new Scanner(System.in);
		System.out.println("<Start daily test> (multichoice)");
		try {

			String answer = "";
			String line = "";
			BufferedReader br = null;
			int number[] = new int[10];
			for (int i = 0; i < 10; i++) {

				number[i] = (int) ((Math.random() * (finish - start + 1) * 10)) + (start - 1) * 10 + 1;

				for (int j = 0; j < i; j++) {
					if (number[i] == number[j]) {
						i--;
						break;
					}
				}
			}

			if (level == 3)
				br = new BufferedReader(new FileReader("high.txt"));
			if (level == 2)
				br = new BufferedReader(new FileReader("mid.txt"));
			if (level == 1)
				br = new BufferedReader(new FileReader("low.txt"));

			while ((line = br.readLine()) != null) {

				String test[] = new String[4];
				test = line.split("/");

				for (int k = 0; k < 10; k++) {
					if (test[3].equals(number[k])) {

						System.out.println("Qestion " + " : " + test[2]);
						System.out.print("Answer : ");
						answer = scanner.next();
						if (test[1].equals(answer)) {
							score++;
						}

						else
							voca.enroll(user.getName(), level, test[1], test[2]);

					}
				}
			}

			System.out.println("your score is " + score);

			rank.enroll(user.getName(), level, start, finish, score);
			br.close();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}

}*/
